from django.core.management.base import BaseCommand
from tasks.utils import check_due_tasks


class Command(BaseCommand):
    help = 'Check for tasks due today and send DingTalk notifications'

    def handle(self, *args, **options):
        result = check_due_tasks()
        self.stdout.write(self.style.SUCCESS(f'Notification result: {result}'))
